package com.example.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.domain.base.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品与规格项的关联表
 *
 * @author haochen78
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("product_spec_relation")
public class ProductSpecRelationDO extends BaseDO {

    /** 商品ID */
    private Long productId;

    /** 规格项ID */
    private Long specOptionId;

    /** 排序权重 */
    private Integer sortOrder;
}